// This file was automatically generated from base.soy.
// Please don't edit this file by hand.

goog.provide('mitel.contextual_gadget.widget');

goog.require('soy');
goog.require('soy.StringBuilder');


mitel.contextual_gadget.widget.container = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<div id="content_col" class="context_content_col"><input type="button" id="call_person" value=" Call "><span id="sender_name"></span><span id="sender_number"></span><span id="from_phone"></span><img src="<<HOST>>images/ajax-loader.gif" id="context_spinner" align="absmiddle" class="context_spinner"/><div id="context_mobile_indicator" class="context_mobile_indicator"></div><div id="auth" class="auth"><button id="auth_button" class="auth_button">Permissions</button></div></div>');
  return opt_sb ? '' : output.toString();
};


mitel.contextual_gadget.widget.device_indicator = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('Call from your<img src="', soy.$$escapeHtml(opt_data.host), 'images/', soy.$$escapeHtml(opt_data.from), '.png" class="context_call_from" align="absmiddle" height="16" id="context_call_startpoint" />to their<img src="', soy.$$escapeHtml(opt_data.host), 'images/', soy.$$escapeHtml(opt_data.to), '.png" class="context_call_to" align="absmiddle" height="16" id="context_call_endpoint" />');
  return opt_sb ? '' : output.toString();
};

;
// This file was automatically generated from presto.soy.
// Please don't edit this file by hand.

goog.provide('mitel.presto.widget');

goog.require('soy');
goog.require('soy.StringBuilder');


mitel.presto.widget.ui = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<textarea id="callbox" style="width:140px" class="presto_callbox">Mitel UCC</textarea><div id="presence" class="presto_presence"></div><span><input id="call_button" type="button" class="presto_call_button" value=" Call "></span><span><form id="presence1" class="presto_select"><label class="presto_radio"><input type="radio" name="In_Out" id="radio_out" value="away">Away</label><label class="presto_radio"><input type="radio" name="In_Out" id="radio_in" value="in_office" checked>In office</label></form></span><select id="actions" class="presto_select"><option>Select an action</option><option value="ClearCall">Hang up</option><option value="HoldCall">Hold</option><option value="RetrieveCall">Retrieve</option><option value="ConferenceCall">Conference</option><option value="TransferCall">Transfer</option><option value="AlternateCall">Alternate</option></select><div id="main">main</div><div id="status" class="presto_status"></div><div id="request" class="presto_request"></div><div id="callprompt" class="presto_call_prompt"><a href="javascript:void(0);" id="voice">Voice</a> | Chat | <a href="javascript:void(0);" id="video">Video</a><div id="prompttext" class="presto_prompttext"/></div><div id="drop_target" class="presto_drop_target">Drop Phone numbers and/or names here</div>');
  return opt_sb ? '' : output.toString();
};


mitel.presto.widget.make_call = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<select id="userSelect" class="presto_select"><option>Make a call</option>');
  var personList55 = opt_data.people;
  var personListLen55 = personList55.length;
  for (var personIndex55 = 0; personIndex55 < personListLen55; personIndex55++) {
    var personData55 = personList55[personIndex55];
    output.append('<option value="', soy.$$escapeHtml(personData55.number), '">', soy.$$escapeHtml(personData55.name), '@', soy.$$escapeHtml(personData55.number), '</option>');
  }
  output.append('</select>');
  return opt_sb ? '' : output.toString();
};


mitel.presto.widget.prompt_call = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<ul class="presto_call_numbers">');
  var entryList69 = opt_data.entries;
  var entryListLen69 = entryList69.length;
  for (var entryIndex69 = 0; entryIndex69 < entryListLen69; entryIndex69++) {
    var entryData69 = entryList69[entryIndex69];
    output.append('<li>', soy.$$escapeHtml(entryData69.contact), '</li>');
  }
  output.append('</ul>');
  return opt_sb ? '' : output.toString();
};


mitel.presto.widget.status = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append((opt_data.device) ? '<br />' + soy.$$escapeHtml(opt_data.dn) + ' - ' + soy.$$escapeHtml(opt_data.stateHumanReadable) + ((opt_data.callParty) ? ' - ' + soy.$$escapeHtml(opt_data.callParty) : '') : '');
  return opt_sb ? '' : output.toString();
};

;
// This file was automatically generated from sidebar.soy.
// Please don't edit this file by hand.

goog.provide('mitel.sidebar_gadget.widget');

goog.require('soy');
goog.require('soy.StringBuilder');


mitel.sidebar_gadget.widget.container = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<div id="sidebar_gadget" class="sidebar_content"><div id="incoming_calls" class="sidebar_incoming_calls"></div><div id="sidebar_mobile" class="sidebar_mobile"><input type="checkbox" name="sidebar_ismobile" id="sidebar_ismobile" value="true" /><label for="sidebar_ismobile">This device is mobile</label></div><div id="auth" class="auth"><button id="auth_button" class="auth_button">Permissions</button></div><div id="presto"></div></div>');
  return opt_sb ? '' : output.toString();
};


mitel.sidebar_gadget.widget.call = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<a href="#">Incoming Call</a><br />');
  return opt_sb ? '' : output.toString();
};
